package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 32309
 * Date: 2025-07-17
 * Time: 22:00
 */
public class BorrowedUidAndBookId {
    private int userId;
    private int bookId;
    private String name;

    public BorrowedUidAndBookId() {
    }

    public BorrowedUidAndBookId(int userID, int bookID, String name) {
        this.userId = userID;
        this.bookId = bookID;
        this.name = name;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userID) {
        this.userId = userID;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookID) {
        this.bookId = bookID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toStr() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(userId).append(",");
        stringBuilder.append(bookId).append(",");
        stringBuilder.append(name);
        return stringBuilder.toString();
    }

}
